<?php
    session_start();
      
    include ('../includes/config.php');
    
    include ('../includes/authenticate.php');
    
    include ('../includes/database.php');
    include ('../includes/user_header.php');
?>

<div class="container">
    <script>
     $(function(){
        var pickerOpts = {
            dateFormat:"yy-mm-dd"
        };  
        $("#datepicker").datepicker(pickerOpts);
     });

    </script>
    
    <form method="POST" action="<?php echo $__config['base_url'] ?>administrator/user_save.php?action=add">
        <label> Username </label>
        <input type="text" name="username" />
        
        <label> Password </label>
        <input type="password" name="password" />
        
        <label> Email </label>
        <input type="text" name="email"/>

       <label> Role </label>
        <select name ="role">
            <option value="0">Administrator</option>
            <option value="1">Anggota</option>
        </select>
        
       <br/>
        <input type="submit" class="btn" />
    </form>
</div>

<?php
     include ('../includes/user_footer.php');
?>
